<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--
文件上传表单要求
1 method必须是Post
2 enctype必须是multipart/form-data
3 springmvc默认限定,单个文件大小为1M以内,总文件大小是10M以内
-->
<h2>文件上传</h2>
<form action="file/upload" method="post" enctype="multipart/form-data">
    昵称：<input type="text" name="nickName" value="龙猫" /><br/>
    头像：<input type="file" name="headPicture" /><br/>
    <button type="submit">保存</button>
</form>
</body>
</html>